package com.swpu.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.swpu.project.model.entity.User;
import com.swpu.project.model.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author swpuyanxiegroup1
 * @since 2024-07-29
 */
public interface UserMapper extends BaseMapper<User> {


List<UserVO>  selectAndOrderUser(@Param("start") int start, @Param("end") int end
         , @Param("wheres") Map<String, String> queryBy , @Param("orders")   Map<String, Boolean> sortBy);
List<HashMap<String,Object>> selectBatchRoleForUser(@Param("ids") List<Integer> ids);


}
